#ifndef MSGPROCESSTHREAD_H
#define MSGPROCESSTHREAD_H

#include "uimsg.h"

#include <QMutex>
#include <QQueue>
#include <QThread>
#include <QWaitCondition>

class MsgProcessThread : public QThread
{
    Q_OBJECT

public:
    MsgProcessThread(QQueue<UiMsg> *msgQueue,QMutex *uiMutex,
                     QWaitCondition *condUiNotify);
    ~MsgProcessThread();

protected:
    void run() Q_DECL_OVERRIDE;

private:
   QQueue<UiMsg> *m_pMsgQueue;
   QMutex *m_pUiMutex;
   QWaitCondition *m_pCondUiNotify;
};

#endif // MSGPROCESSTHREAD_H
